<!--订单详情-->
<div class="am-u-sm-12 widget main-w">
	<ol class="am-breadcrumb">
		<li>
			<a href="{:url('/admin/index')}">首页</a>
		</li>
		<li>
			<a href="{:url('index')}">调度中心</a>
		</li>
		<li>
			<a href="{:url('index')}">查看订单</a>
		</li>
		<li class="am-active">订单详情</li>
	</ol>
	<fieldset style="margin: 0;">
		<legend>订单信息</legend>
		<div class="am-u-sm-12">
			<div class="am-u-sm-4 am-text-truncate">
				<div class="am-u-sm-3 am-text-truncate">订单号：</div>
				<div class="am-u-sm-9">{$item.order_no}</div>
			</div>
			<div class="am-u-sm-4 am-text-truncate">
				<div class="am-u-sm-3 am-text-truncate">订单状态：</div>
				<div class="am-u-sm-9">
					{if $item.order_state==1} 待审批 {elseif $item.order_state==2/} 已批准 {elseif $item.order_state==3/} 已拒绝 {elseif $item.order_state==4/} 待用车 {elseif $item.order_state==5/} 已派车 {elseif $item.order_state==6/} 接驾中 {elseif $item.order_state==7/} 已到达出发地 {elseif $item.order_state==8/} 已到达目的地 {elseif $item.order_state==9/} 待支付 {elseif $item.order_state==10/} 待评价 {elseif $item.order_state==11/}已完成 {elseif $item.order_state==12/}已取消 {elseif $item.order_state==13/}已终止 {elseif $item.order_state==14/}无效 {/if}
				</div>
			</div>
			<div class="am-u-sm-4 am-text-truncate">
				<div class="am-u-sm-3 am-text-truncate">订单类型：</div>
				<div class="am-u-sm-9">{if $item.order_type==1} 公务订单 {elseif $item.order_type==2/} 企业订单{elseif $item.order_type==3/} 个人订单{/if}
				</div>
			</div>
		</div>
	</fieldset>
	<div class="am-tabs" data-am-tabs="{noSwipe: 1}" style="padding: 10px;">
		<ul class="am-tabs-nav am-nav am-nav-tabs">
			<li class="am-active">
				<a href="#tab1">下单信息</a>
			</li>

			<li>
				<a href="#tab2">跟进信息</a>
			</li>
		</ul>

		<div class="am-tabs-bd">
			<div class="am-tab-panel am-fade am-in am-active" id="tab1">
				<fieldset>
					<legend>基本信息</legend>
					<div class="am-u-sm-12" style="margin-bottom: 10px;">
						<div class="am-u-sm-3 cl-p">
							<div class="am-u-sm-4 am-text-truncate">下单时间：</div>
							<div class="am-u-sm-8">{$item.order_time?:"暂无信息"}</div>
						</div>
						<div class="am-u-sm-3 cl-p">
							<div class="am-u-sm-4 am-text-truncate">下单人：</div>
							<div class="am-u-sm-8">{$item.orderer?:"暂无信息"}</div>
						</div>
						<div class="am-u-sm-3 cl-p">
							<div class="am-u-sm-4 am-text-truncate">车型：</div>
							<div class="am-u-sm-8">{$item.car_type_name?:"暂无信息"}</div>
						</div>
						<div class="am-u-sm-3 cl-p">
							<div class="am-u-sm-4 am-text-truncate">用车类型：</div>
							<div class="am-u-sm-8">
								{if $item.use_type==1} 行政执法 {elseif $item.use_type==2/} 特殊公务 {elseif $item.use_type==3/} 重要会议 {elseif $item.use_type==4/} 机要通讯 {elseif $item.use_type==5/} 视察调研 {elseif $item.use_type==6/} 公务接待 {else/}"暂无信息"{/if}
							</div>
						</div>
					</div>
					<div class="am-u-sm-12" style="margin-bottom: 10px;">
						<div class="am-u-sm-3 cl-p">
							<div class="am-u-sm-4 am-text-truncate">乘客：</div>
							<div class="am-u-sm-8"><a class="passenger" data-id='{$item.passenger_id}'>{$item.passenger_name?:"暂无信息"}</a></div>
						</div>
						<div class="am-u-sm-3 cl-p">
							<div class="am-u-sm-4 am-text-truncate">电话：</div>
							<div class="am-u-sm-8">{$item.passenger_phone?:"暂无信息"}</div>
						</div>
						<div class="am-u-sm-3 cl-p">
							<div class="am-u-sm-4 am-text-truncate">出发地：</div>
							<div class="am-u-sm-8">{$item.departure?:"暂无信息"}</div>
						</div>
						<div class="am-u-sm-3 cl-p">
							<div class="am-u-sm-4 am-text-truncate">目的地：</div>
							<div class="am-u-sm-8">{$item.destination?:"暂无信息"}</div>
						</div>
					</div>
					<div class="am-u-sm-12" style="margin-bottom: 10px;">
						<div class="am-u-sm-3 cl-p">
							<div class="am-u-sm-4 am-text-truncate">预估里程：</div>
							<div class="am-u-sm-8">{$item.estimate_mileage?:"暂无信息"}</div>
						</div>
						<div class="am-u-sm-3 cl-p">
							<div class="am-u-sm-4 am-text-truncate">乘车单位：</div>
							<div class="am-u-sm-8">{$item.car_use_name?:"暂无信息"}</div>
						</div>
						<div class="am-u-sm-3 cl-p">
							<div class="am-u-sm-4 am-text-truncate">审批人：</div>
							<div class="am-u-sm-8">{$item.approval?:"暂无信息"}</div>
						</div>
						<div class="am-u-sm-3 cl-p">
							<div class="am-u-sm-4 am-text-truncate">司机：</div>
							<div class="am-u-sm-8"><a class="driver" data-id='{$item.driver_id}'>{$item.driver_name?:"暂无信息"}</a></div>
						</div>
					</div>
					<div class="am-u-sm-12" style="margin-bottom: 10px;">
						<div class="am-u-sm-3 cl-p">
							<div class="am-u-sm-4 am-text-truncate">车牌：</div>
							<div class="am-u-sm-8">{$item.number?:"暂无信息"}</div>
						</div>
						<div class="am-u-sm-3 cl-p">
							<div class="am-u-sm-4 am-text-truncate">汽车型号：</div>
							<div class="am-u-sm-8">{$item.structure?:"暂无信息"}</div>
						</div>
						<div class="am-u-sm-3 cl-p">
							<div class="am-u-sm-4 am-text-truncate">评价：</div>
							<div class="am-u-sm-8">{$item.evaluate?:"暂无信息"}</div>
						</div>
						<div class="am-u-sm-3 cl-p">
							<div class="am-u-sm-4 am-text-truncate">评星：</div>
							<div class="am-u-sm-8">{$item.star?:"暂无信息"}</div>
						</div>
					</div>
					<div class="am-u-sm-12 cl-p" style="margin-bottom: 10px;">
						<div class="am-u-sm-12">
							<div class="am-u-sm-1 am-text-truncate">投诉建议：</div>
							<div class="am-u-sm-11">{$item.proposal?:"暂无信息"}</div>
						</div>
					</div>
				</fieldset>
				<fieldset>
					<legend>收费信息</legend>
					{if $item.type==3||$item.type==5}
					<fieldset style="margin:0">
						<div class="am-u-sm-12" style="margin-bottom: 10px;">
							<legend style="border: 0;margin: 0;font-size:18px ;color:#999;">包车费用<small>(合计：{$item.passenger_money})</small></legend>
							<div class="am-u-sm-3 cl-p">
								<div class="am-u-sm-4 am-text-truncate">夜间服务费：</div>
								<div class="am-u-sm-8">{$item.chartered_night?$item.chartered_night:"0"}</div>
							</div>
							<div class="am-u-sm-3 cl-p">
								<div class="am-u-sm-4 am-text-truncate">包车费用：</div>
								<div class="am-u-sm-8">{$item.chartered_charge?$item.chartered_charge:"0"}</div>
							</div>
							<div class="am-u-sm-3 cl-p">
								<div class="am-u-sm-4 am-text-truncate">包车公里数：</div>
								<div class="am-u-sm-8">{$item.chartered_km?$item.chartered_km:"0"}</div>
							</div>
							<div class="am-u-sm-3 cl-p">
								<div class="am-u-sm-4 am-text-truncate">包车时长：</div>
								<div class="am-u-sm-8">{$item.chartered_hour?$item.chartered_hour:"0"}</div>
							</div>
						</div>
						<div class="am-u-sm-12" style="margin-bottom: 10px;">
							<div class="am-u-sm-3 cl-p">
								<div class="am-u-sm-4 am-text-truncate">超时价：</div>
								<div class="am-u-sm-8">{$item.chartered_overtime?$item.chartered_overtime:"0"}</div>
							</div>
							<div class="am-u-sm-3 cl-p">
								<div class="am-u-sm-4 am-text-truncate">超程费用：</div>
								<div class="am-u-sm-8">{$item.chartered_overrun?$item.chartered_overrun:"0"}</div>
							</div>
							
							
						</div>
						
					</fieldset>
					{else/}
					<div class="am-u-sm-12" style="margin-bottom: 10px;">
						<div class="am-u-sm-3 cl-p">
							<div class="am-u-sm-4 am-text-truncate">实际里程：</div>
							<div class="am-u-sm-8">{$item.meter?$item.meter:"0"}</div>
						</div>
						<div class="am-u-sm-3 cl-p">
							<div class="am-u-sm-4 am-text-truncate">用时：</div>
							<div class="am-u-sm-8">{$item.use_time?$item.use_time:"0"}</div>
						</div>
						<div class="am-u-sm-3 cl-p">
							<div class="am-u-sm-4 am-text-truncate">订单费用：</div>
							<div class="am-u-sm-8">{$item.order_money?$item.order_money:"0"}</div>
						</div>
						<div class="am-u-sm-3 cl-p">
							<div class="am-u-sm-4 am-text-truncate">折扣：</div>
							<div class="am-u-sm-8">{$item.discount?$item.discount:"0"}</div>
						</div>
					</div>
					<div class="am-u-sm-12" style="margin-bottom: 10px;">
						
					</div>
					<fieldset style="margin:0">
						<div class="am-u-sm-12" style="margin-bottom: 10px;">
							<legend style="border: 0;margin: 0;font-size:18px ;color:#999;">乘客费用<small>(合计：{$item.passenger_money})</small></legend>
							<div class="am-u-sm-3 cl-p">
								<div class="am-u-sm-4 am-text-truncate">起步价：</div>
								<div class="am-u-sm-8">{$item.start_fee?$item.start_fee:"0"}</div>
							</div>
							<div class="am-u-sm-3 cl-p">
								<div class="am-u-sm-4 am-text-truncate">等待费用：</div>
								<div class="am-u-sm-8">{$item.wait_fee?$item.wait_fee:"0"}</div>
							</div>
							<div class="am-u-sm-3 cl-p">
								<div class="am-u-sm-4 am-text-truncate">夜间行驶费：</div>
								<div class="am-u-sm-8">{$item.night_fee?$item.night_fee:"0"}</div>
							</div>
							<div class="am-u-sm-3 cl-p">
								<div class="am-u-sm-4 am-text-truncate">低速行驶费：</div>
								<div class="am-u-sm-8">{$item.low_fee?$item.low_fee:"0"}</div>
							</div>
						</div>
						<div class="am-u-sm-12" style="margin-bottom: 10px;">
							<div class="am-u-sm-3 cl-p">
								<div class="am-u-sm-4 am-text-truncate">时长费：</div>
								<div class="am-u-sm-8">{$item.time_fee?$item.time_fee:"0"}</div>
							</div>
							<div class="am-u-sm-3 cl-p">
								<div class="am-u-sm-4 am-text-truncate">远途费：</div>
								<div class="am-u-sm-8">{$item.remote_fee?$item.remote_fee:"0"}</div>
							</div>
							<div class="am-u-sm-3 cl-p">
								<div class="am-u-sm-4 am-text-truncate">取消费：</div>
								<div class="am-u-sm-8">{$item.cancel_fee?$item.cancel_fee:"0"}</div>
							</div>
							<div class="am-u-sm-3 cl-p">
								<div class="am-u-sm-4 am-text-truncate">里程费：</div>
								<div class="am-u-sm-8">{$item.travel_fee?$item.travel_fee:"0"}</div>
							</div>
						</div>
						<div class="am-u-sm-12" style="margin-bottom: 10px;">
							<div class="am-u-sm-3 cl-p">
								<div class="am-u-sm-4 am-text-truncate">路桥费：</div>
								<div class="am-u-sm-8">{$item.toll?$item.toll:"0"}</div>
							</div>
							<div class="am-u-sm-3 cl-p">
								<div class="am-u-sm-4 am-text-truncate">高速费：</div>
								<div class="am-u-sm-8">{$item.high_fee?$item.high_fee:"0"}</div>
							</div>
							<div class="am-u-sm-3 cl-p">
								<div class="am-u-sm-4 am-text-truncate">停车费：</div>
								<div class="am-u-sm-8">{$item.park_fee?$item.park_fee:"0"}</div>
							</div>
							<div class="am-u-sm-3 cl-p">
								<div class="am-u-sm-4 am-text-truncate">其他费：</div>
								<div class="am-u-sm-8">{$item.other_fee2?$item.other_fee2:"0"}</div>
							</div>
						</div>
					</fieldset>
					<fieldset style="margin:0">
						<div class="am-u-sm-12" style="margin-bottom: 10px;">
							<legend style="border: 0;margin: 0;font-size:18px ;color:#999;">司机收入<small>(合计：{$item.driver_money})</small></legend>
							<div class="am-u-sm-3 cl-p">
								<div class="am-u-sm-4 am-text-truncate">起步价：</div>
								<div class="am-u-sm-8">{$item.start_fee2?$item.start_fee2:"0"}</div>
							</div>
							<div class="am-u-sm-3 cl-p">
								<div class="am-u-sm-4 am-text-truncate">里程费：</div>
								<div class="am-u-sm-8">{$item.travel_fee2?$item.travel_fee2:"0"}</div>
							</div>
							<div class="am-u-sm-3 cl-p">
								<div class="am-u-sm-4 am-text-truncate">夜间行驶费：</div>
								<div class="am-u-sm-8">{$item.night_fee2?$item.night_fee2:"0"}</div>
							</div>
							<div class="am-u-sm-3 cl-p">
								<div class="am-u-sm-4 am-text-truncate">低速行驶费：</div>
								<div class="am-u-sm-8">{$item.low_fee2?$item.low_fee2:"0"}</div>
							</div>
						</div>
						<div class="am-u-sm-12" style="margin-bottom: 10px;">
							<div class="am-u-sm-3 cl-p">
								<div class="am-u-sm-4 am-text-truncate">时长费：</div>
								<div class="am-u-sm-8">{$item.time_fee2?$item.time_fee2:"0"}</div>
							</div>
							<div class="am-u-sm-3 cl-p">
								<div class="am-u-sm-4 am-text-truncate">远途费：</div>
								<div class="am-u-sm-8">{$item.remote_fee2?$item.remote_fee2:"0"}</div>
							</div>
							<div class="am-u-sm-3 cl-p">
								<div class="am-u-sm-4 am-text-truncate">取消费：</div>
								<div class="am-u-sm-8">{$item.cancel_fee?$item.cancel_fee:"0"}</div>
							</div>
							<div class="am-u-sm-3 cl-p">
								<div class="am-u-sm-4 am-text-truncate">候客费：</div>
								<div class="am-u-sm-8">{$item.wait_fee2?$item.wait_fee2:"0"}</div>
							</div>
							
						</div>
						<div class="am-u-sm-12" style="margin-bottom: 10px;">
							<div class="am-u-sm-3 cl-p">
								<div class="am-u-sm-4 am-text-truncate">路桥费：</div>
								<div class="am-u-sm-8">{$item.toll?$item.toll:"0"}</div>
							</div>
							<div class="am-u-sm-3 cl-p">
								<div class="am-u-sm-4 am-text-truncate">高速费：</div>
								<div class="am-u-sm-8">{$item.high_fee?$item.high_fee:"0"}</div>
							</div>
							<div class="am-u-sm-3 cl-p">
								<div class="am-u-sm-4 am-text-truncate">停车费：</div>
								<div class="am-u-sm-8">{$item.park_fee?$item.park_fee:"0"}</div>
							</div>
							<div class="am-u-sm-3 cl-p">
								<div class="am-u-sm-4 am-text-truncate">其他费：</div>
								<div class="am-u-sm-8">{$item.other_fee2?$item.other_fee2:"0"}</div>
							</div>
						</div>
					</fieldset>
					
					{/if}
					
				</fieldset>
			</div>
			<div class="am-tab-panel am-fade" id="tab2">
				<div class="am-u-sm-8">
					<table width="100%" class="am-table am-table-compact am-table-bordered am-table-radius am-table-striped tpl-table-black " id="example-r">
						<thead>
							<tr>
								<th>订单进度</th>
								<th>具体时间</th>
							</tr>
						</thead>
						<tbody>
							{foreach $list as $key => $item}
							<tr>

								<td>申请时间</td>
								<td>{$item.apply_time}</td>
							</tr>
							{/foreach}
						</tbody>
					</table>
				</div>
			</div>
		</div>
	</div>
	<div class="am-u-sm-12">
		<a href="{:url('add',['order_id'=>$item.order_id])}" class="am-btn am-btn-sm am-btn-primary am-radius">修改订单</a>
		<a class="am-btn am-btn-sm am-btn-secondary am-radius back">返回</a>
	</div>
</div>